package com.abp.utils;

import org.apache.commons.math3.ml.clustering.Clusterable;

public class UserRatingVector implements Clusterable {

    private double[] ratings;  // 用户对不同图书的评分向量

    public UserRatingVector(double[] ratings) {
        this.ratings = ratings;
    }

    @Override
    public double[] getPoint() {
        return ratings;
    }

    public double[] getRatings() {
        return ratings;
    }

    public void setRatings(double[] ratings) {
        this.ratings = ratings;
    }
}
